<?php
namespace WenwenPay\Config;

class Config
{
    private string $agentNo;
    private string $secretKey;
    private array $apiUrls = [
        'transfer' => 'https://ca.wenwenpay.com.cn:7002/wapay/withdrawal/merchant/sevice/withdrawal.do',
        'query' => 'https://ca.wenwenpay.com.cn:7002/wapay/withdrawal/merchant/sevice/withdrawal/result.do',
        'list' => 'https://ca.wenwenpay.com.cn:7002/wapay/withdrawal/merchant/sevice/withdrawal/list.do',
        'amount' => 'https://ca.wenwenpay.com.cn:7002/wapay/withdrawal/merchant/sevice/remaining/amount.do',
    ];

    public function __construct(string $agentNo, string $secretKey)
    {
        $this->agentNo = $agentNo;
        $this->secretKey = $secretKey;
    }

    public function getAgentNo(): string
    {
        return $this->agentNo;
    }

    public function getSecretKey(): string
    {
        return $this->secretKey;
    }

    public function getApiUrl(string $type): string
    {
        return $this->apiUrls[$type] ?? '';
    }
} 